<link rel="stylesheet" href="css/agcfs.pub.css">
<nav class="navbar navbar-default" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="#">科目体系</a>
        </div>
    
        <form class="navbar-form navbar-left">
        <div class="input-group">
            <span class="input-group-addon" id="basic-addon1">会计年度</span>    
            <select class="form-control" id="booktype-search-type" data-bind="event:{change:searchBookType}" >
                <option>请选择会计年度</option>
            </select>                 
        </div>

        <button type="button" class="btn btn-default" data-bind="click: addBookType">新增</button>
        <button type="button" class="btn btn-default" data-bind="click: editBookType">编辑</button>
        <button type="button" class="btn btn-default" data-bind="click: delBookType">删除</button>
        <button type="button" class="btn btn-primary">保存</button>
        <div class="btn-group" role="group" aria-label="...">
        </div>
       </form>
       <!-- <div class="navbar-form navbar-left" role="search">
        <select id="booktype-search-type" class="form-control">
            <option value="" class="year">请选择会计年度</option>
        </select>

      <!--  <div class="btn-group" role="group" aria-label="...">
            <button class="btn btn-primary" data-bind="click: searchBookType">查询</button>
            <button class="btn btn-primary" data-bind="click: addBookType">增加</button>
            <button class="btn btn-primary" data-bind="click: editBookType">编辑</button>
            <button class="btn btn-primary" data-bind="click: delBookType">删除</button>
      </div> -->
    </div>
</nav>

<div class="booktype-list-content">
    <div type="text" u-meta='{"id":"booktype-grid","multiSelect":false,"editType":"default","data":"bookTypeDataTable","type":"grid","editable":false}'>
        <div options='{"field":"id","dataType":"String","title":"id","editType":"string","width": 90,"visible":false}'></div>
        <div options='{"field":"nd","dataType":"String","title":"会计年度","editType":"string","width": 100}'></div>
        <div options='{"field":"accBookTypeCode","dataType":"String","title":"科目体系编码","editType":"string","width": 100}'></div>
        <div options='{"field":"accBookTypeName","dataType":"String","title":"科目体系名称","editType":"string","width": 200}'></div>
        <div options='{"field":"codeRule","dataType":"String","title":"科目编码规则","editType":"string","width": 200}'></div>
    </div>
</div>

<div class="modal fade" id="delete-booktype-notice" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog infomodal" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title">系统提示</h4>
            </div>

            <div class="modal-body">
                <div class="modal-body-delete">
                	<img class="dialog-icon" src="images/ip/menu/questionNotice.png" width="24" height="24"/>
                    <p id="modal-delete-text">您确定要删除吗？</p>
                </div>
            </div>
            <div class="modal-footer">
                <div class="btn-group" role="group" aria-label="...">
                    <button class="btn btn-primary" data-bind="click: delete_booktype">确定</button>
                    <button class="btn btn-primary" data-bind="click: delete_booktype_close;">取消</button>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="edit-notice" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog editmodal" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title">科目编辑</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" role="form">
                    <!-- <div class="input-group">
                        <span id="span-booknd" class="input-group-addon">&emsp;&emsp;&emsp;&emsp;年度</span>
                        <input id="booktype-nd" type="input" class="form-control" data-bind="event:{blur: checkNd}">
                    </div> -->
                    
                    <div class="input-group">
                        <span id="span-booknd" class="input-group-addon">&emsp;&emsp;&emsp;&emsp;年度</span>
                        <select id="booktype-edit-nd" class="form-control">
				            <option value="" class="year">请选择会计年度</option>
				        </select>
                        <!-- <input id="booktype-nd" type="input" class="form-control" data-bind="event:{blur: checkNd}"> -->
                    </div>

                    <div class="input-group book-edit-input-group">
                        <span class="input-group-addon">科目体系代码</span>
                        <input id="booktype-code" type="text" class="form-control" data-bind="event:{blur: checkCode}">
                    </div>

                    <div class="input-group">
                        <span class="input-group-addon">科目体系名称</span>
                        <input id="booktype-name" type="text" class="form-control">
                    </div>

                    <div class="input-group">
                        <span class="input-group-addon">科目编码规则</span>
                        <input id="booktype-coderule" type="text" class="form-control">
                    </div>
                    <!-- <div id="warninfo" class="alert alert-danger">
                        <a href="#" class="close" data-dismiss="alert">&times;</a>
                        <p id="warn-text">结果是成功的。</p>
                    </div> -->
                    
                    <input type="hidden" id="booktype-id">
                </form>
            </div>

            <div class="modal-footer">
            	<span id="warn-text" class="label label-warning warn-span">警告标签</span>
                <div class="btn-group" role="group" aria-label="...">
                    <button class="btn btn-primary" data-bind="click: saveBookTypeEdit">保存</button>
                    <button class="btn btn-primary" data-bind="click: edit_notice_close">取消</button>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="error-notice" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog infomodal">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title">错误</h4>
            </div>
            <div class="modal-body">
                <div class="modal-body-error">
                	<img class="dialog-icon" src="images/ip/menu/errorNotice.png" width="24" height="24"/>
                    <p id="error-text"></p>
                </div>
            </div>
        </div>
    </div>
</div>
<div id="save-success-new" class="save-success-new"><img src="images/ip/menu/success_p.png" height="" width=""/>保存成功!</div>
